package mylab.starters.mybatis.utils.query;

import lombok.Getter;

/**
 * sql操作码
 */
@Getter
public enum OP {

    //@formatter:off
    EQ("="),
    NE("<>"),
    GT(">"),
    GE(">="),
    LT("<"),
    LE("<="),

    LK("like '%值%'"),
    LL("left like '%值'"),
    LR("right like '值%'"),
    NL("not like '%值%'"),

    BT("between v1 and v2"),
    NB("not between v1 and v2"),

    IN("in (v1,v2,v3 ...)"),
    NI("not in (v1,v2,v3 ...)"),
    //@formatter:on
    ;

    String desc;

    OP(String desc) {
        this.desc = desc;
    }


}
